<div id="filtres"><?php include_component('log', 'filtersSelector') ?></div>
<table width="100%">
  <tbody>
    <tr>
      <td valign="top" width="50%" align="center">
<?php include_component('log', 'hourGraph')?>
<?php include_component('log', 'userGraph')?>
      </td>
      <td valign="top" width="50%" align="center">
<?php if (!$hasGroupage): ?>
<table class="datas" >
  <thead>
    <tr>
      <th>Date</th>
      <th>Machine</th>
      <th>Utilisateur</th>
      <th>Type</th>
    </tr>
  </thead>
  <tbody>
    <?php if (count($logs)): ?>
      <?php foreach($logs as $log): ?>
        <tr>
          <td><?php echo $log->getDate() ?></td>
          <td><?php echo $log->getMachine() ?></td>
          <td><?php echo $log->getUtilisateur() ?></td>
          <td><?php echo $log->getTypes()->getLibelle() ?></td>
        </tr>
      <?php endforeach; ?>
    <?php else: ?>
      <tr><td colspan="4">Aucun résultat pour la sélection</td></tr>
    <?php endif; ?>
  </tbody>
</table>
<?php else: ?>
    <?php include_component('log', 'tableauGroupage', array(
      'logs' => $logs,
      'type' => $typegroupage,
    )) ?>
<?php endif; ?>
      </td>
    </tr>
  </tbody>
</table>
<div id="footer">
<?php if(!sfConfig::get('app_anonymous_login')): ?>
<?php echo $sf_user->getAttribute('nom'); ?><br /><?php echo link_to('Déconnexion', 'user/logout')?>
<?php endif; ?>&nbsp;
</div>